package com.ruoqing.utils.common;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoqing.core.dto.BasePageDto;

/**
	* @author YaoXian
	* @title: BeanSetterUtils
	* @projectName ruoxi-blog
	* @description: 若兮微服务 - 分页BeanSetter工具类
	* @date 2020-12-11 15:21
	*/
public class BeanSetterUtils {
		
		public static void setPageAttributes(BasePageDto basePageDto, Page page){
				basePageDto.setCurrent(page.getCurrent());
				basePageDto.setSize(page.getSize());
				basePageDto.setTotal(page.getTotal());
		}
}
